using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Topology
{
    /// <summary>
    /// <para>Create Topology</para>
    /// <para>Creates a topology. The topology will not contain any feature classes or rules.</para>
    /// <para>创建拓扑。拓扑将不包含任何要素类或规则。</para>
    /// </summary>    
    [DisplayName("Create Topology")]
    public class CreateTopology : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CreateTopology()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_dataset">
        /// <para>Input Feature Dataset</para>
        /// <para>The feature dataset in which the topology will be created.</para>
        /// <para>将在其中创建拓扑的要素数据集。</para>
        /// </param>
        /// <param name="_out_name">
        /// <para>Output Topology</para>
        /// <para>The name of the topology to be created. This name must be unique across the entire geodatabase.</para>
        /// <para>要创建的拓扑的名称。此名称在整个地理数据库中必须是唯一的。</para>
        /// </param>
        public CreateTopology(object _in_dataset, object _out_name)
        {
            this._in_dataset = _in_dataset;
            this._out_name = _out_name;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Create Topology";

        public override string CallName => "management.CreateTopology";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_dataset, _out_name, _in_cluster_tolerance, _out_topology];

        /// <summary>
        /// <para>Input Feature Dataset</para>
        /// <para>The feature dataset in which the topology will be created.</para>
        /// <para>将在其中创建拓扑的要素数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Feature Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_dataset { get; set; }


        /// <summary>
        /// <para>Output Topology</para>
        /// <para>The name of the topology to be created. This name must be unique across the entire geodatabase.</para>
        /// <para>要创建的拓扑的名称。此名称在整个地理数据库中必须是唯一的。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Topology")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_name { get; set; }


        /// <summary>
        /// <para>Cluster Tolerance</para>
        /// <para>The cluster tolerance to be set on the topology. The larger the value, the more likely vertices will be to cluster together.</para>
        /// <para>要在拓扑上设置的簇容差。该值越大，顶点聚类在一起的可能性就越大。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Cluster Tolerance")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double? _in_cluster_tolerance { get; set; } = null;


        /// <summary>
        /// <para>Output Topology</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Topology")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_topology { get; set; }


        public CreateTopology SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}